<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{{ $item['title'] }}-{{$setting['vals']['title']}}</title>
    <meta name="_token" content="{{ csrf_token() }}"/>
    <link rel="stylesheet" href="/static/public/layui/css/layui.css">
    <link rel="stylesheet" href="/static/home/css/style.css">
    <script type="text/javascript" src="/static/public/layui/layui.js"></script>
</head>
<body>
{{--顶部--}}
@include('home/public/header')
<div class="main" style="margin-top: 10px">
    {{--        banner--}}
    <div class="center">
        <div class="banner-box">
            <div class="banner">
                <div style="border-bottom: 1px solid #f0f0f0;height: 30px;line-height: 30px;margin-bottom: 10px">
                    <h3>{{ $item['title'] }}</h3>
                </div>
                <ul>
                    @foreach($lists as $item)
                        <li class="provice-box">
                            <a href="/detail/{{$item['id']}}">
                                <div class="provice-box-img">
                                    <img src="{{ $item['thumb'] }}" alt="">
                                </div>
                                <div class="provice-box-title">
                                    <h2>{{ $item['title'] }}</h2>
                                    <div class="provice-title-desc"><p>{{ $item['descs'] }}</p></div>
                                    <div class="provice-title-meta">
                                        <span>作者：</span>
                                        @if($item['auth_id'] == 0)

                                            {{$user[$item['mid']]['nick_name']}}
                                        @else
                                            {{$admin[$item['auth_id']]['nickname']}}
                                        @endif

                                        <span style="margin-left: 15px">发布时间：</span>{{ $item['add_time']?date('Y-m-d',$item['add_time']):'' }}
                                        <span style="margin-left: 15px">阅读量：</span>{{ $item['pv'] }}

                                    </div>
                                </div>
                            </a>
                        </li>
                    @endforeach
                </ul>
            </div>
            <div class="art-top">
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">

                </div>

            </div>
        </div>

        <div class="art-box">
            <div class="art"  style="margin-top: 7px">
                <span style="display: block; padding-left: 10px;border-bottom: 2px solid #e6570a"><h2>热门文章</h2></span>
                <div class="art-cl">
                    <ul>
                        @foreach($re as $item)
                            <li style="margin: 10px 0px">
                                <a href="/detail/{{$item['id']}}">
                                    <span class="layui-badge-dot"></span><span style="margin-top: 8px;margin-left: 5px">{{ $item['title'] }}</span>
                                </a>
                            </li>
                        @endforeach

                    </ul>

                </div>
            </div>
        </div>
    </div>


</div>
@include('home/public/footer')


</body>
</html>
